Reply to How to use GPU in Tensorflow? This works for me: with tf.device("/cpu:0"): or with tf.device("/gpu:0"): Machine Learning & AI General Feb ’22